package cn.legend.travel.destination.main.service;

import cn.legend.travel.common.pojo.po.DistrictSimplePO;
import cn.legend.travel.common.pojo.po.DistrictSimplesPO;
import cn.legend.travel.common.pojo.po.SceneriesPO;
import cn.legend.travel.common.pojo.po.SceneryPO;
import cn.legend.travel.destination.main.pojo.vo.CountInt;
import cn.legend.travel.destination.main.pojo.vo.DistrictVO;
import cn.legend.travel.destination.main.pojo.vo.SceneryVO;
import org.springframework.data.elasticsearch.core.SearchHit;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 处理省市区数据的业务接口
 *
 * @author java@tedu.cn
 * @version 1.0
 */
@Transactional
public interface ISceneryService {

    /**
     * 查询地区列表
     */
    List<SceneryVO> list();

    List<SceneriesPO> selectNearbyAttractions(String name);

    List<SceneryPO> selectScenery(String name);

    CountInt selectCount(String name);

    List<SceneryVO> selectByKeyword(String keyword);

    List<SceneryVO> selectAttractions(String name);

    /**
     * 重建地区数据的缓存
     */
    void rebuildScenery();

    void elasticsearchScenery();

}
